# 参数完成格式使用
# TODO 按照这个顺序来定义参数：必填参数、位置不定长参数、默认参数、关键字不定长参数
def fn1(a, b, *args, c=100, **kwargs):
    print(a)
    print(b)
    print(args)
    print(c)
    print(kwargs)
fn1(1, 2, 'a', 'b', 'c', c=1000, aa='aa', bb='bb', cc='cc')
print('==' * 20)
fn1(1, 2, 'a', 'b', 'c', aa='aa', bb='bb', cc='cc')

def fn2(name, age, *args, class_id=1205, **kwargs):
    print(name, age, *args, class_id, **kwargs)

fn2('zyy', 24, '篮球', 'rep', addr='成都')

